package com.example.news.mapper;

import com.example.news.pojo.Comments;
import com.example.news.pojo.News;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Mapper
public interface NewsMapper {
    List<News> getAllNews(Integer currentPage, String title);
    News showNewsDetail(String newsCode);
    List<Comments> getComments(String newsCode);
    Integer addComments(Comments comments);
}
